Optimal. Leaf size=29 \[ \frac {4 \sin ^6(a+b x)}{3 b}-\frac {\sin ^8(a+b x)}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 29, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.150, Rules used = {4373, 2644, 14}
\begin {gather*} \frac {4 \sin ^6(a+b x)}{3 b}-\frac {\sin ^8(a+b x)}{b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 2644
Rule 4373
Rubi steps
\begin {align*} \int \sin ^2(a+b x) \sin ^3(2 a+2 b x) \, dx &=8 \int \cos ^3(a+b x) \sin ^5(a+b x) \, dx\\ &=\frac {8 \text {Subst}\left (\int x^5 \left (1-x^2\right ) \, dx,x,\sin (a+b x)\right )}{b}\\ &=\frac {8 \text {Subst}\left (\int \left (x^5-x^7\right ) \, dx,x,\sin (a+b x)\right )}{b}\\ &=\frac {4 \sin ^6(a+b x)}{3 b}-\frac {\sin ^8(a+b x)}{b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.13, size = 48, normalized size = 1.66 \begin {gather*} \frac {-72 \cos (2 (a+b x))+12 \cos (4 (a+b x))+8 \cos (6 (a+b x))-3 \cos (8 (a+b x))}{384 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(57\) vs.
\(2(27)=54\).
time = 0.07, size = 58, normalized size = 2.00
method | result | size |
default | \(-\frac {3 \cos \left (2 x b +2 a \right )}{16 b}+\frac {\cos \left (4 x b +4 a \right )}{32 b}+\frac {\cos \left (6 x b +6 a \right )}{48 b}-\frac {\cos \left (8 x b +8 a \right )}{128 b}\) | \(58\) |
risch | \(-\frac {3 \cos \left (2 x b +2 a \right )}{16 b}+\frac {\cos \left (4 x b +4 a \right )}{32 b}+\frac {\cos \left (6 x b +6 a \right )}{48 b}-\frac {\cos \left (8 x b +8 a \right )}{128 b}\) | \(58\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 50, normalized size = 1.72 \begin {gather*} -\frac {3 \, \cos \left (8 \, b x + 8 \, a\right ) - 8 \, \cos \left (6 \, b x + 6 \, a\right ) - 12 \, \cos \left (4 \, b x + 4 \, a\right ) + 72 \, \cos \left (2 \, b x + 2 \, a\right )}{384 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.30, size = 36, normalized size = 1.24 \begin {gather*} -\frac {3 \, \cos \left (b x + a\right )^{8} - 8 \, \cos \left (b x + a\right )^{6} + 6 \, \cos \left (b x + a\right )^{4}}{3 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 359 vs.
\(2 (22) = 44\).
time = 2.81, size = 359, normalized size = 12.38 \begin {gather*} \begin {cases} \frac {3 x \sin ^{2}{\left (a + b x \right )} \sin ^{3}{\left (2 a + 2 b x \right )}}{16} + \frac {3 x \sin ^{2}{\left (a + b x \right )} \sin {\left (2 a + 2 b x \right )} \cos ^{2}{\left (2 a + 2 b x \right )}}{16} + \frac {3 x \sin {\left (a + b x \right )} \sin ^{2}{\left (2 a + 2 b x \right )} \cos {\left (a + b x \right )} \cos {\left (2 a + 2 b x \right )}}{8} + \frac {3 x \sin {\left (a + b x \right )} \cos {\left (a + b x \right )} \cos ^{3}{\left (2 a + 2 b x \right )}}{8} - \frac {3 x \sin ^{3}{\left (2 a + 2 b x \right )} \cos ^{2}{\left (a + b x \right )}}{16} - \frac {3 x \sin {\left (2 a + 2 b x \right )} \cos ^{2}{\left (a + b x \right )} \cos ^{2}{\left (2 a + 2 b x \right )}}{16} - \frac {\sin ^{2}{\left (a + b x \right )} \sin ^{2}{\left (2 a + 2 b x \right )} \cos {\left (2 a + 2 b x \right )}}{2 b} - \frac {31 \sin ^{2}{\left (a + b x \right )} \cos ^{3}{\left (2 a + 2 b x \right )}}{96 b} + \frac {3 \sin {\left (a + b x \right )} \sin ^{3}{\left (2 a + 2 b x \right )} \cos {\left (a + b x \right )}}{16 b} + \frac {\sin {\left (a + b x \right )} \sin {\left (2 a + 2 b x \right )} \cos {\left (a + b x \right )} \cos ^{2}{\left (2 a + 2 b x \right )}}{8 b} - \frac {\cos ^{2}{\left (a + b x \right )} \cos ^{3}{\left (2 a + 2 b x \right )}}{96 b} & \text {for}\: b \neq 0 \\x \sin ^{2}{\left (a \right )} \sin ^{3}{\left (2 a \right )} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.54, size = 26, normalized size = 0.90 \begin {gather*} -\frac {3 \, \sin \left (b x + a\right )^{8} - 4 \, \sin \left (b x + a\right )^{6}}{3 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.11, size = 33, normalized size = 1.14 \begin {gather*} -\frac {{\cos \left (a+b\,x\right )}^4\,\left ({\cos \left (a+b\,x\right )}^4-\frac {8\,{\cos \left (a+b\,x\right )}^2}{3}+2\right )}{b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________